<?php

// $Id$

require_once('tcms_vpage_system_attribute_dbc.class.php');
require_once('tcms_vpt_system_attribute_dbc.class.php');


class TCMS_VPT_System_Attribute_Deleter extends Tangra_Class {
	public static function delete(DB_Connection $dbc, $vpt_sa_id) {
		tangra_if_not_int_throw_e($vpt_sa_id);

		TCMS_VPage_System_Attribute_DBC::delete_all_for_vpt_sa($dbc, $vpt_sa_id);
		TCMS_VPT_System_Attribute_DBC::delete($dbc, $vpt_sa_id);
	}
}